package danny.hoi.web.utils;

import danny.hoi.domain.export.system.Dept;

public class IsParentUtils {
    public static boolean isParent(Dept dept, Dept temp) {
        if (dept.getDeptId().equals(temp.getDeptId())) {
            return true;
        }
        if (temp.getParent() != null) {
            return isParent(dept, temp.getParent());
        }
        return false;
    }
}
